<?php

/**
 * Class to handle universal output
 * 
 */
class out {

    public static $singleton_instance;
    public $finalOutput = array();
    public function __construct() {
        
    }

    public static function __s() {
        if (!isset(self::$singleton_instance)) {
            $className = get_class();
            self::$singleton_instance = new $className;
        }
        return self::$singleton_instance;
    }

    /**
     * Finally we are on our way to client
     */
    public function doOut(){
        print implode("",$this->finalOutput);
    }
}